<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">




        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-inline">
                <input name="username" value="{$Think.get.username|default=''}" placeholder="请输入姓名" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-inline">
                <input name="phone" value="{$Think.get.phone|default=''}" placeholder="请输入手机号" class="layui-input">
            </div>
        </div>




        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
            <button class="layui-btn layui-btn-primary" onclick="jiesuan()">结算订单</button>

        </div>


        <div style="clear: both"></div>


    </form>
    <script>
        form.render()
        laydate.render({range: true, elem: '[name="create_at"]'})

        function jiesuan() {
            if(confirm("确定结算吗？结算后数据不能恢复！")){
                $.ajax({
                    url: "<?php echo url('store/member/jiesuan');?>",
                    type: "post",
                    success: function (data) {
                        alert('操作成功')
                        window.location.reload();
                    }
                })
            }
        }
    </script>
</fieldset>